﻿using System.ComponentModel.DataAnnotations;
using Yz.Base;
using Yz.Model.Enums;

namespace Yz.Model.Entities
{
    /// <summary>
    /// 新闻公告
    /// </summary>
    public class Notice : UpdateEntity
    {
        /// <summary>
        /// 标题
        /// </summary>
        [MaxLength(50)]
        public string Title { get; set; }
        /// <summary>
        /// 内容(富文本内容)
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 公告类型
        /// </summary>
        public NoticeType NoticeType { get; set; }
        /// <summary>
        /// 发布人姓名
        /// </summary>
        [MaxLength(20)]
        public string UserName { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 公司Id
        /// </summary>
        public int CompanyId { get; set; }
    }
}
